package com.sdu.hotel.entity.base;

import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.core.keygen.KeyGenerators;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public abstract class BaseEntity {

    @Id(keyType = KeyType.Generator,value = KeyGenerators.snowFlakeId)
    private String id;
}
